//
//  NSString+WiiGetStringSize.m
//  iFeller
//
//  Created by Wii on 15/12/13.
//  Copyright © 2015年 Wii. All rights reserved.
//

#import "NSString+WiiGetStringSize.h"

@implementation NSString (WiiGetStringSize)
- (CGSize)getSizeWithFont:(UIFont *)font forWidth:(CGFloat)width {
    //according string to get size
    return [self boundingRectWithSize:CGSizeMake(width, 0) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName: font} context:nil].size;
}
@end
